package com.orafl.use.comorafluse.factoryBean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class factory implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        return new MastModel();
    }

    @Override
    public Class<?> getObjectType() {
        return MastModel.class;
    }

    public String toString() {
        return "我是factory";
    }

}
